package com.sharemarking.wa.platform.controller;

import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.OrgVerifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RequestMapping("orgVerify")
@RestController
public class OrgVerifyController {

    @Autowired
    OrgVerifyService orgVerifyService;

    /**
     *获取我的企业认证信息
     * @return
     * @throws Exception
     */
    @RequestMapping("getInfo")
    public ResponseParams<?> getInfo() throws Exception {
        return orgVerifyService.getInfo();
    }

    /**
     *新增或提交我的企业认证
     * @return
     * @throws Exception
     */
    @RequestMapping("addOrEdit")
    public ResponseParams<?> addOrEdit() throws Exception {
        return orgVerifyService.addOrEdit();
    }


    /**
     *企业是否认证
     * @return
     * @throws Exception
     */
    @RequestMapping("isOrgVerify")
    public ResponseParams<?> isOrgVerify() throws Exception {
        return orgVerifyService.isOrgVerify();
    }



}
